package rest.jbpm.svg;

/**
 * Created by IntelliJ IDEA.
 * User: xEviL
 * Date: 26.10.11
 * Time: 15:06
 * To change this template use File | Settings | File Templates.
 */
class JbpmEndCancelElement extends JbpmCircleElement{
    public JbpmEndCancelElement(String _name, Integer _x, Integer _y, Integer _w, Integer _h){
        super(_name,_x,_y,_w,_h);
    }
    public String draw(){//
        double k = (double)r / 24.0;
        return super.draw()+"<text x=\"" + (x + (w / 2)) + "\" y=\"" + (y + (h / 2)+1) + "\" font-family=\"sans-serif\" fill=\"red\" font-size=\""+(50*k)+"px\" font-weight=\"bold\" style=\"text-anchor:middle;dominant-baseline:central;\">×</text>";/*+"<circle cx=\""+(x+w/2)+"\" cy=\""+(y+w/2)+"\" r=\""+(r*0.6)+"\"" +
       "  style=\"fill:red;stroke:black;stroke-width:2;fill-opacity:1;\n" +
       "  stroke-opacity:0\"/>\n";*/
    }
}
